package cn.stylefeng.guns.modular.rest.basic;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import cn.stylefeng.guns.modular.basic.service.BasicAddressService;
import cn.stylefeng.guns.modular.rest.aop.UserAop;
import cn.stylefeng.roses.core.base.controller.BaseController;
import cn.stylefeng.roses.core.reqres.response.ResponseData;

/**
 *地址控制器
 */
@Controller
@RequestMapping("/rest/address")
public class restAddressController extends BaseController {

    @Autowired
    private UserAop userAop;

    @Autowired
    private BasicAddressService basicAddressService;

    /**
     * 通过id查询
     */
    @ResponseBody
    @RequestMapping("/getByid")
    public ResponseData getByid(Integer id) {
        return ResponseData.success(basicAddressService.getById(id));
    }
    
    
}
